package cn.ante.org.mapper;

import cn.ante.basic.utils.PageList;
import cn.ante.org.domain.Department;
import cn.ante.org.query.DepartmentQuery;

import java.util.List;

public interface DepartmentMapper {
    /* 查询所有 */
    List<Department> loadAll(DepartmentQuery departmentQuery);

    Department loadById(Long id);

    void add(Department department);

    void upddate(Department department);

    void remove(Long id);

    /* 分页 + 高级查询 */
    PageList<Department> queryDepartment(DepartmentQuery departmentQuery);

    /* 查询总条数 */
    Integer pageCount();

}
